Provider

interface Provider

Interface for an object capable of providing a Peripheral.

Inheritors

Functions

Link copied to clipboard
abstract fun <T : Peripheral> getPeripheral(peripheralClass: Class<T>): T?

Gets a peripheral.

abstract fun <T : Peripheral> getPeripheral(peripheralClass: Class<T>, observer: Ref.Observer<T>): Ref<T>

Gets a peripheral and registers an observer notified each time it changes.